package com.symone.webcms.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@Accessors(chain = true)
@TableName("sys_priviledge_table")
public class Permission extends Model<Permission> {

    /**
     * 角色ID
     */
    @ApiModelProperty("角色ID")
    private long roleId;

    /**
     * Shiro Code
     */
    @ApiModelProperty("Shiro Code")
    private String shiroCode;

    /**
     * URL
     */
    @ApiModelProperty("URL")
    private String url;

    @Override
    protected Serializable pkVal() {
        return null;
    }

    public Permission(long roleId, String shiroCode, String url) {
        this.roleId = roleId;
        this.shiroCode = shiroCode;
        this.url = url;
    }
}
